<?php echo $header; ?>
<?php echo $column_left; ?>
<div id="content">
	<div class="page-header">
    	<div class="container-fluid">
        	<div class="pull-right">
            	<a href="<?php echo $insert; ?>" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="Add New"><i class="fa fa-plus"></i></a>
                <button type="submit" form="form-product" formaction="<?php echo $copy; ?>" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="Copy"><i class="fa fa-copy"></i></button>
                <button type="button" data-toggle="tooltip" title="" class="btn btn-danger" onclick="confirm('Delete/Uninstall cannot be undone! Are you sure you want to do this?') ? $('#form-product').submit() : false;" data-original-title="Delete"><i class="fa fa-trash-o"></i></button>
            </div>
            <h1> <?php echo $heading_title; ?>  </h1>
            <ul class="breadcrumb">
            	<?php foreach ($breadcrumbs as $breadcrumb) { ?>
                	<li> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                <?php } ?>
            </ul>
        </div><!-- container-fluid -->
    </div><!-- page-header -->
     <?php if ($error_warning) { ?>
        <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
          <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
    <?php } ?>
    <?php if ($success) { ?>
        <div class="alert alert-success"><i class="fa fa-check-circle"></i> <?php echo $success; ?>
          <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
    <?php } ?>
    <div class="container-fluid">
    	<div class="panel panel-default">
        	<div class="panel-heading">
            	<h3 class="panel-title"><i class="fa fa-list"></i> <?php echo $heading_title; ?> </h3>
            </div>
            <div class="panel-body">
            	<div class="table-responsive"> 
                	<form action="<?php echo $delete; ?>" method="post" enctype="multipart/form-data" id="form">
						<table class="table table-bordered table-hover">
                            <thead>
                                <tr>
                                    <td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></td>
                                    <td class="left"><?php echo $column_name; ?></td>
                                    <td class="right"><?php echo $column_sort_order; ?></td>
                                    <td class="right"><?php echo $column_action; ?></td>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if ($categories) { ?>
                                	<?php foreach ($categories as $category) { ?>
                                		<tr>
                                			<td style="text-align: center;"><?php if ($category['selected']) { ?>
                                                <input type="checkbox" name="selected[]" value="<?php echo $category['blogs_category_id']; ?>" checked="checked" />
                                                <?php } else { ?>
                                                <input type="checkbox" name="selected[]" value="<?php echo $category['blogs_category_id']; ?>" />
                                                <?php } ?>
                                            </td>
                                			<td class="left"><?php echo $category['name']; ?></td>
                                			<td class="right"><?php echo $category['sort_order']; ?></td>
                                			<td class="right">
                                                <?php foreach ($category['action'] as $action) { ?>
                                                	<a class="btn btn-primary" href="<?php echo $action['href']; ?>"><i class="fa fa-pencil"></i></a>
                                                <?php } ?>
                                            </td>
                                		</tr>
                                	<?php } ?>
                                <?php } else { ?>
                                        <tr>
                                        	<td class="center" colspan="4"><?php echo $text_no_results; ?></td>
                                        </tr>
                                <?php } ?>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php echo $footer; ?>



<?php /* 
<div id="content">

  <div class="box">
    <div class="content">
      <form action="<?php echo $delete; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="list">
          <thead>
            <tr>
              <td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></td>
              <td class="left"><?php echo $column_name; ?></td>
              <td class="right"><?php echo $column_sort_order; ?></td>
              <td class="right"><?php echo $column_action; ?></td>
            </tr>
          </thead>
          <tbody>
            <?php if ($categories) { ?>
            <?php foreach ($categories as $category) { ?>
            <tr>
              <td style="text-align: center;"><?php if ($category['selected']) { ?>
                <input type="checkbox" name="selected[]" value="<?php echo $category['blogs_category_id']; ?>" checked="checked" />
                <?php } else { ?>
                <input type="checkbox" name="selected[]" value="<?php echo $category['blogs_category_id']; ?>" />
                <?php } ?></td>
              <td class="left"><?php echo $category['name']; ?></td>
              <td class="right"><?php echo $category['sort_order']; ?></td>
              <td class="right"><?php foreach ($category['action'] as $action) { ?>
                [ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]
                <?php } ?></td>
            </tr>
            <?php } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="4"><?php echo $text_no_results; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
*/ ?>
